package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.Room;
import com.zzyl.nursing.vo.RoomVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 房间Mapper接口
 */
@Mapper
public interface RoomMapper extends BaseMapper<Room> {

    //根据房间ID查询楼层、房间、价格
    RoomVo getRoomById(Long id);

    //根据楼层ID获取房间VO列表
    List<RoomVo> selectByFloorId(Long floorId);

    //获取所有房间（负责老人）
    List<RoomVo> selectByFloorIdWithNur(Long floorId);

    //查询智能楼层的基础数据和设备上报的数据
    List<RoomVo> getRoomsWithDeviceByFloorId(Long floorId);
}